<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Event</title>
<script type="text/javascript">
	var value = "Test";
	function alert1() {
		alert(this.value);
	}
	
	function alert2(obj) {
		alert(obj.value);
	}
</script>
</head>
<body>
<input type="button" id="Button1" value="Test1" onclick="alert1()" />
<input type="button" id="Button2" value="Test2" onclick="alert2(this)" />
</body>
<script type="text/javascript">
	/*document.getElementById("Button1").onclick = function() {
		alert2(this);
	}*/
</script>
</html>